var express = require('express');
var router = express.Router();
var sqlDB = require('../../common/basicConnection');

/* GET users listing. */
router.get('/userList', function (req, res, next) {
    sqlDB.query('select * from user').then(function (result) {
        res.json(result)
    }).catch(err => { res.json(err); console.log(err) });
});

module.exports = router;
